
import instance from "@/utils/axios.js";
const userLogin = ({ mobile, code }) => {
  return instance({
    url: '/v1_0/authorizations',
    method: "post",
    data: { mobile, code }
  })
}

export { userLogin }




const userInfo = () => {
  return instance({
    url: '/v1_0/user/profile',
    method: "get",

  })
}

export { userInfo }
//编辑页面接口
const edituserInfo = data => {
  return instance({
    url: '/v1_0/user/profile',
    method: "patch",
    data,

  })
}

export { edituserInfo }

const edituserPhoto = fd => {
  return instance({
    url: '/v1_0/user/photo',
    method: "patch",
    data: fd,

  })
}

export { edituserPhoto }